package com.agee.system.convert;

import com.agee.system.domain.SysRole;
import com.agee.system.domain.req.SysRoleCreateReq;
import com.agee.system.domain.req.SysRolePageQueryReq;
import com.agee.system.domain.req.SysRoleUpdateReq;
import com.agee.system.domain.resp.SysRoleExportResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qimingjin
 * @date 2022-09-22 11:24
 * @Description:
 */
@Mapper
public interface SysRoleConvert {
    SysRoleConvert INSTANCE = Mappers.getMapper(SysRoleConvert.class);

    SysRole convert(SysRoleCreateReq sysRoleCreateReq);

    SysRole convert(SysRoleUpdateReq sysRoleUpdateReq);

    SysRole convert(SysRolePageQueryReq sysRolePageQueryReq);

    List<SysRoleExportResp> convert(List<SysRole> sysRoleList);


}
